<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Wiki.Master" Inherits="System.Web.Mvc.ViewPage<WikiNamespaceViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_MvcWikiTitle" runat="server">
	Pages from <%= Model.Name %> namespace
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_MvcWikiMainHeader" runat="server">
    <h2>Pages from <%= Html.RouteLink(Model.Name, new { controller = "wikipage", action = "index", @namespace = Model.Name }) %> namespace</h2>
    <p>
        <%= Html.ActionLink("[Delete]", "delete", new { controller = "wikinamespace", @namespace = Model.Name }) %>
        &nbsp;<%= Html.ActionLink("[Create page]", "create", new { @namespace = Model.Name }) %>
    </p>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_MvcWikiMainContent" runat="server">
    <ul>
        <% foreach (var wikiPageViewModel in Model.Pages) { %>
        <li>
            <%= Html.RouteLink(wikiPageViewModel.Name, new { controller = "wikipage", action = "show", @namespace = wikiPageViewModel.Namespace, page = wikiPageViewModel.Name }) %>
        </li>
        <% } %>
    </ul>
</asp:Content>